package com.fun.demo;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class TestOOM {
    public static void main(String[] args) {
      //  Arrays.stream(args).map(String::toUpperCase).forEach(System.out::println);

        List<Integer>  list = Arrays.asList(1,2,3,4,5,6,7,8,9);

        list.stream().sorted((i, i1) -> {return  i - i1 ;}).forEach((i) -> {
            System.out.println(i);
        });
    }
}
